import http from '../api/http.js'

export default {
  /* 登陆/注册/找回密码 */
  sms: data => http.post('/index/sms', data), // 发送短信
  register: data => http.post('/login/register', data), // 注册接口
  login: data => http.post('/login/login', data), // 登录接口
  editPassWord: data => http.post('/login/editPassWord', data), // 修改密码接口

  /* 首页 */
  cate: data => http.post('/api/cate', data), // 获取分类
  select: data => http.post('/index/select', data), // 设置用户选择分类
  tips: data => http.post('/index/tips', data), // 喇叭通知
  custom: data => http.post('/index/custom', data), // 获取首页配置信息
  hide: data => http.post('user/hide', data), // 隐藏激活的题库

  /* 个人中心 */
  study: data => http.post('/record/study', data), // 最近学习章节
  practice: data => http.post('/record/practice', data), // 题目总进度
  getBanner: data => http.post('/index/getBanner', data), // banner图片

  active: data => http.post('/user/active', data), // 激活的题目列表

  newsList: data => http.post('/user/newsList', data), // 资讯收藏列表
  newsEdit: data => http.post('/Record/newsEdit', data), // 取消资讯收藏与添加
  news: data => http.post('/index/news', data), // 考试资讯与考试须知数据
  getRecord: data => http.post('/index/getRecord', data), // 获取资讯是否收藏

  opinion: data => http.post('/user/opinion', data), // 意见反馈

  /* 题库练习 */
  // questionBank: data => http.post('/record/questionBank', data), // 练习列表
  questionBank: data => http.post('/api/course', data), // 练习列表
  course: data => http.post('/api/course', data), // 课程列表
  app: data => http.post('/api/app', data), // 获取试题

  note: data => http.post('/record/note', data), // 获取笔记
  editNote: data => http.post('/record/editNote', data), // 修改笔记
  addNote: data => http.post('/record/addNote', data), // 添加笔记
  noteList: data => http.post('/record/noteList', data), // 笔记列表
  delNote: data => http.post('/record/delNote', data), // 移除笔记

  comment: data => http.post('/record/comment', data), // 查看题目是否收藏
  collect: data => http.post('/record/collect', data), // 题目收藏
  delCollect: data => http.post('/record/delCollect', data), // 取消题目收藏
  collectList: data => http.post('/record/collectList', data), // 收藏题目的列表

  getComment: data => http.post('/record/getComment', data), // 获取评论列表
  addComment: data => http.post('/record/addComment', data), // 添加评论

  mark: data => http.post('/record/mark', data), // 交卷打分

  wrong: data => http.post('/record/wrong', data), // 错题列表
  delWrong: data => http.post('/record/delWrong', data), // 删除错题

  subjectSearch: data => http.post('/api/subjectSearch', data), // 搜索试题

  special: data => http.post('/record/special', data), // 获取模拟考试与历年真题

  check: data => http.post('/api/check', data), // 验证题库是否激活
  code: data => http.post('/user/code', data), // 发送激活码

  /* 获取最新版本->无用接口 */
  version: data => http.post('/api/version', data)
}
